#if
if(5>3 and 5>4):
    print("5 is greater then 3")



num=int(input("请输入数字"))
if(num>0):
    print("正数")
else:
    print("负数")

    if num<0:
        print("数字",num,"小于0")
        if num>100:
            print("数字",num,"大于100")
        else:
            print("数字",num,"小于100")
    elif 0 <= num <1000:
        print("数字",num,"在0-1000之间")
    elif 1000 <= num < 10000:
        print("数字",num,"在1000-10000之间")




    # if money >= 1000 and score >= 10000:
    #     print("钻石会员")
    # elif money >= 500 and score >= 5000:
    #     print( "白金会员")
    # elif money >= 200 and score >= 2000:
    #     print("黄金会员")
    # elif money >= 100 and score >= 1000:
    #     print( "白银会员")
    # elif score >= 500:
    #     print ("青铜会员")
    # else:
    #     print ("普通会员")

#
# i=1
# while i<=10:
#     print(i,end="")
#     i+=1
#

    # while True:
    #     print("helllo")
    #
    #     str ="hello wold"
    #     for i in str:
    #         print(i,end="")
    #
    #     for i in range(1,10):
    #         print(i,end="")
    #
    #     for i in range(1,5,2):
    #         print(i,end="")
#*
#**
#***
#****
#*****
#  for i in range(1,6):
#      for j in range(1,i+1):
#          print("*",end="")
#      print()
#
# for i in range(1,10,2):
#     print(("*"*i).center(10))
# for i in range(7,0,-2):
#     print(("*"*i).center(10))

  num2=int(input("请输入行数："))
  for i in range(1,num2+1,2):
      print(("*"*i).center(num2+1))
  for i in range(num2-2,0,-2):
      print(("*"*i).center(num2+1))